package org.lvgo.filter;

/**
 * 人类
 *
 * @author lvgo
 * @version 1.0
 * @date 2018/9/21 0021 16:47
 */

public class Person {
    /**
     * 姓名
     */
    private String name;
    /**
     * 性别
     */
    private Gender gender;
    /**
     * 婚否
     */
    private boolean married;

    public Person() {
    }

    public Person(String name, Gender gender, boolean married) {
        this.name = name;
        this.gender = gender;
        this.married = married;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public boolean isMarried() {
        return married;
    }

    public void setMarried(boolean married) {
        this.married = married;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", gender=" + gender +
                ", married=" + married +
                '}';
    }
}


